export const serverConfig = {
    server: {
        port: process.env.SERVER_PORT
    },
    // DB: {
    //     db_host: process.env.DB_HOST,
    //     db_name: process.env.DB_NAME,
    //     db_user: process.env.DB_USER,
    //     db_password: process.env.DB_PASSWORD,
    //     db_port: process.env.DB_PORT,
    // },
    log: {
        appenders: {
            cheese: { type: 'file', filename: 'logs/cheese.log' },
            access: { type: 'file', filename: 'logs/access.log' }, // 访问日志
            dbLogger: { type: 'file', filename: 'logs/dbLogger.log' },
            catchError: { type: 'file', filename: 'logs/catchError.log' },
        },
        categories: {
            default: { appenders: ['cheese'], level: 'info' },
            access: { appenders: ['access'], level: 'info' },  // 访问日志
            db: { appenders: ['dbLogger'], level: 'info' },
            catch: { appenders: ['catchError'], level: 'info' },
        }
    },
    jwt: {
        jwt_pulic_key: process.env.JWT_PUBLIC_KEY,
        jwt_private_key: process.env.JWT_PRIVATE_KEY,
        jwt_secret: process.env.JWT_SECRET,
        jwt_expirt: process.env.JWT_EXPIRT,
    }
} 